package com.stone.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author stone
 * @date 2022/4/27 15:50
 */
@Data
public class UserUpdateDTO {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Long id;

    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @NotNull(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @NotNull(message = "角色不能为空")
    @ApiModelProperty(value = "角色")
    private List<Long> roleList;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态")
    private Boolean enable;

    private String token;
}
